#endif
extern int register_xsm(struct xsm_operations *ops);
-extern int unregister_xsm(struct xsm_operations *ops);
extern struct xsm_operations dummy_xsm_ops;
extern void xsm_fixup_ops(struct xsm_operations *ops);
extern int ss_initialized;
-extern struct xsm_operations *original_ops;
-
static void __init parse_flask_param(char *s)
{
if ( !strcmp(s, "enforcing") )
flask_disabled = 1;
/* Reset xsm_ops to the original module. */
- xsm_ops = original_ops;
+ xsm_ops = &dummy_xsm_ops;
return 0;
}
#include <objsec.h>
#include <conditional.h>
-struct xsm_operations *original_ops = NULL;
-
static u32 domain_sid(struct domain *dom)
{
struct domain_security_struct *dsec = dom->ssid;
avc_init();
- original_ops = xsm_ops;
if ( register_xsm(&flask_ops) )
panic("Flask: Unable to register with XSM");
return 0;
}
-
-int unregister_xsm(struct xsm_operations *ops)
-{
- if ( ops != xsm_ops )
- {
- printk("%s: trying to unregister "
- "a security_opts structure that is not "
- "registered, failing.\n", __FUNCTION__);
- return -EINVAL;
- }
-
- xsm_ops = &dummy_xsm_ops;
-
- return 0;
-}
-
#endif
long do_xsm_op (XEN_GUEST_HANDLE_PARAM(xsm_op_t) op)